package com.jadows.tdog.message.details;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 文本消息
 *
 * @author taojiacheng
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RoomTextMessage extends AbstractMessage {

    /**
     * 群 id
     */
    private Long roomId;

    @NotBlank(message = "내용은 비워 둘 수 없습니다")
    @Size(max = 1024, message = "메시지 내용이 너무 깁니다.")
    private String content;

    private Long replyMsgId;

    @Size(max = 10, message = "최대 @10명")
    private List<Long> atUidList;

}
